package com.cv.platform.dal.dataobject.message;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.time.LocalDateTime;

/**
 * 消息会话表 DO
 *
 * @author Charles_XDXD
 */
@TableName(value = "cv_conversation", autoResultMap = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class CvConversationDO {

    /**
     * 会话编号
     */
    @TableId
    private Long id;

    /**
     * 主动创建会话的用户编号，关联 system_users
     */
    private Long createUserId;

    /**
     * 参与会话的用户编号，关联 system_users
     */
    private Long targetUserId;

    /**
     * 会话创建时间
     */
    private LocalDateTime createTime;

}